home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / text / dtp / Notes1.3.lha / Notes / deutsch / BassSchlüssel.file < prev    next >
Text File  |  1999-02-18  |  38KB  |  1,266 lines

  1. /* Unterprogramm zu Noten.pprx */
  2.  
  3. signal on halt
  4. signal on break_c
  5. signal on break_e
  6. signal on break_d
  7. call ppm_SetStyle(N)
  8. call ppm_SetMagMode(180)
  9. call ppm_UpdateScreen()
  10.  
  11. noteneingabe:
  12.     /* Kleinster Notenabstand */
  13.     sysart = "Notensystemart:2"
  14.     systemart = ppm_Getform("Bitte noch einmal die gewählte Systemart eingeben. (2, 1v oder 1b)", 3, sysart)
  15.     select
  16.     when systemart == '2' then zdist = 4
  17.     when systemart == '1v' then zdist = 2
  18.     when systemart == '1b' then zdist = 2
  19.     otherwise noteneingabe()
  20.     end
  21.     zdist2 = zdist-2
  22.     xgrdform = "(1,2,4,8 oder 16)"
  23.     xgrd = ppm_GetForm("Bitte für den kleinsten Notenwert eingeben ...(nichts=ABBRUCH)", 3, xgrdform)
  24.     if xgrd == '' then exit_msg("Abbruch")
  25.     select
  26.      when xgrd == '1' then xg =0.7
  27.      when xgrd == '2' then xg =1.4
  28.      when xgrd == '4' then xg =2.8
  29.      when xgrd == '8' then xg =5.6
  30.      when xgrd == '16' then xg =11.2
  31.      otherwise noteneingabe()
  32.     end
  33.  
  34.    /* Punktgröße der Noten */
  35.    notepkt = 26
  36.    call ppm_SetJustification(0)
  37.  
  38.    zz = 0 /* Zeilenzähler */
  39.    notex = 3
  40.    page = ppm_CurrentPage()
  41.  
  42. pfad:
  43.    do
  44.            choose=ppm_Inform(2,"Auswahl des Notenfiles oder Abbruch ...", "Abbruch","File")
  45.            if choose == 0 then exit_msg("Abbruch")
  46.            eingabe = ppm_GetFileName("Bitte Notenscriptfile wählen ...", "Noten:")
  47.            res = OPEN(notenfile, eingabe, 'R')
  48.            if res == 0 then
  49.              do
  50.                  call ppm_inform(1,"Fehler in der Eingabe, oder File existiert nicht !!!","OK")
  51.                  pfad()
  52.              end
  53.            call ppm_ShowStatus("OK, ich arbeite ...")
  54.            auslesen(notenfile)
  55.    end
  56.  
  57.     /* x-Abstände der Noten zueinander */
  58. auslesen:
  59.         do
  60.           parse arg file
  61.           noten = READCH(file, 4000)
  62.           i=1
  63.           do forever
  64.             nw = word(noten, i)
  65.             nn = word(noten, i+1)
  66.             al = word(noten, i+2)
  67.             if nw == 'P' then nw = 'p'
  68.             if nw == 'D' then nw = 'd'
  69.             if nw == 'L' then nw = 'l'
  70.             if nw == 'T' then nw = 't'
  71.             if nn == 'T' then nn = 't'
  72.             if nw == 'J' then nw = 'j'
  73.             if nw == 'E' then nw = 'e'
  74.             select
  75.               when al == (X2C(410a)) then al = 'a'
  76.               when al == (X2C(610a)) then al = 'a'
  77.               when al == (X2C(300a)) then al = '0'
  78.               otherwise exit_msg("Da war ein Fehler!")
  79.             end
  80.  
  81.             select
  82.               when nn=='DB1' then nn = 'Db1'
  83.               when nn=='EB1' then nn = 'Eb1'
  84.               when nn=='GB1' then nn = 'Gb1'
  85.               when nn=='AB1' then nn = 'Ab1'
  86.               when nn=='DB2' then nn = 'Db2'
  87.               when nn=='EB2' then nn = 'Eb2'
  88.               when nn=='GB2' then nn = 'Gb2'
  89.               when nn=='AB2' then nn = 'Ab2'
  90.               when nn=='DB3' then nn = 'Db3'
  91.               when nn=='EB3' then nn = 'Eb3'
  92.               when nn=='GB3' then nn = 'Gb3'
  93.               otherwise NOP
  94.             end
  95.  
  96.             call auswahl()
  97.             i=i+3
  98.           end
  99.         end
  100.  
  101. auswahl:
  102. do
  103.     select
  104.       when nw == 'j' then do
  105.                           zz = 0   /* Zeilenzähler */
  106.                           notex = 3
  107.                           return
  108.                           end
  109.       when nw == 'e' then
  110.         do
  111.             call ppm_ClearStatus()
  112.             exit_msg("Geschafft!")
  113.         end
  114.       when nw == 's' then
  115.           do
  116.           xw = xg/16
  117.           nw='x'
  118.           yv = 0
  119.           end
  120.       when nw  == 'S' then
  121.           do
  122.           xw = xg/16
  123.           nw='X'
  124.           yv = 0.47
  125.           end
  126.       when nw == 'a' then
  127.           do
  128.           xw = xg/8
  129.           nw='e'
  130.           yv = 0
  131.           end
  132.       when nw == 'A' then
  133.           do
  134.           xw = xg/8
  135.           nw='E'
  136.           yv = 0.47
  137.           end
  138.       when nw == 'v' then
  139.           do
  140.           xw = xg/4
  141.           nw='q'
  142.           yv = 0
  143.           end
  144.       when nw == 'V' then
  145.           do
  146.           xw = xg/4
  147.           nw='Q'
  148.           yv = 0.47
  149.           end
  150.       when nw == 'h' then
  151.           do
  152.           xw = xg/2
  153.           yv = 0
  154.           end
  155.       when nw == 'H' then
  156.           do
  157.           xw = xg/2
  158.           yv = 0.47
  159.           end
  160.       when nw == 'g' then
  161.           do
  162.           xw = xg
  163.           nw='w'
  164.           yv = 0
  165.           end
  166.       when nw == 'G' then
  167.           do
  168.           xw = xg
  169.           nw='W'
  170.           yv = 0.47
  171.           end
  172.  
  173.       when nw == 'pk' then
  174.           do
  175.             if notex < 3 then
  176.             do
  177.               notex = bakx
  178.               zz = zz - zdist
  179.               call ppm_SetSize(25)
  180.               box#id = ppm_CreateBox(notex+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  181.               call ppm_SetSize(20)
  182.               call ppm_TextIntoBox(box#id, 'd')
  183.             end
  184.             else
  185.             do
  186.               call ppm_SetSize(25)
  187.               box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  188.               call ppm_SetSize(20)
  189.               call ppm_TextIntoBox(box#id, 'd')
  190.             end
  191.  
  192.              select
  193.                  when nn == '1' then
  194.                  do
  195.                   xw = xg
  196.                   notex = notex+xw
  197.                  end
  198.                  when nn == '2' then
  199.                  do
  200.                   xw = xg/2
  201.                   notex = notex+xw
  202.                  end
  203.                  when nn == '4' then
  204.                  do
  205.                   xw = xg/4
  206.                   notex = notex+xw
  207.                  end
  208.                  when nn == '8' then
  209.                  do
  210.                   xw = xg/8
  211.                   notex = notex+xw
  212.                  end
  213.                  when nn == '16' then
  214.                  do
  215.                   xw  = xg/16
  216.                   notex = notex+xw
  217.                  end
  218.                  when nn == 't' then
  219.                  do
  220.                   xw  = 0.2
  221.                   notex = notex+xw
  222.                  end
  223.                  otherwise
  224.                   do
  225.                    call ppm_ClearStatus()
  226.                    exit_msg("Da war ein Fehler")
  227.                   end
  228.              end
  229.            if notex >=18.7 then
  230.                do
  231.                  notex = 2.5
  232.                  zz = zz + zdist
  233.                end
  234.            return
  235.           end
  236.  
  237.       when nw == 'PK' then
  238.           do
  239.             if notex < 3 then
  240.             do
  241.               notex = bakx
  242.               zz = zz - zdist
  243.               call ppm_SetSize(25)
  244.               box#id = ppm_CreateBox(notex+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  245.               call ppm_SetSize(20)
  246.               call ppm_TextIntoBox(box#id, 'd')
  247.             end
  248.             else
  249.             do
  250.               call ppm_SetSize(25)
  251.               box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0)
  252.               call ppm_SetSize(20)
  253.               call ppm_TextIntoBox(box#id, 'd')
  254.             end
  255.            select
  256.                when nn == '1' then
  257.                 do
  258.                  xw = xg
  259.                  notex = notex+xw
  260.                 end
  261.                when nn == '2' then
  262.                 do
  263.                  xw = xg/2
  264.                  notex = notex+xw
  265.                 end
  266.                when nn == '4' then
  267.                 do
  268.                  xw = xg/4
  269.                  notex = notex+xw
  270.                 end
  271.                when nn == '8' then
  272.                 do
  273.                  xw = xg/8
  274.                  notex = notex+xw
  275.                 end
  276.                when nn == '16' then
  277.                 do
  278.                  xw  = xg/16
  279.                  notex = notex+xw
  280.                 end
  281.                when nn == 't' then
  282.                 do
  283.                  xw  = 0.2
  284.                  notex = notex+xw
  285.                 end
  286.                otherwise
  287.                do
  288.                 call ppm_ClearStatus()
  289.                 exit_msg("Da war ein Fehler")
  290.                end
  291.            end
  292.            if notex >=18.7 then
  293.              do
  294.                notex = 2.5
  295.                zz = zz + zdist
  296.              end
  297.            return
  298.           end
  299.  
  300.  
  301.       /* Taktstrich */
  302.       when nw == 't' then
  303.           do
  304.            call ppm_SetLineWeight(0.25)
  305.            call ppm_DrawLine(notex, 2+zz+zdist2, notex, zdist2+2.8+zz)
  306.            notex = notex+0.2
  307.            return
  308.           end
  309.  
  310.  
  311.       when nw == 'p' | when nw == 'P' then
  312.       do
  313. pausenwert:
  314.         x = notex
  315.         select
  316.             when nn == '1' then do
  317.  
  318.                 y = zdist2+2.29+zz
  319.                 call ppm_SetLineWeight(4)
  320.                 call ppm_DrawLine(x, y, x+0.4, y)
  321.                 call ppm_SetLineWeight(0.25)
  322.                 xw = xg
  323.                 notex = notex+xw
  324.             end
  325.  
  326.             when nn == '2' then do
  327.  
  328.                 y = zdist2+2.33+zz
  329.                 call ppm_SetLineWeight(4)
  330.                 call ppm_DrawLine(x, y, x+0.4, y)
  331.                 call ppm_SetLineWeight(0.25)
  332.                 xw = xg/2
  333.                 notex = notex+xw
  334.             end
  335.  
  336.             when nn == '4' then do
  337.  
  338.                 y = zdist2+2.07+zz
  339.                 Pbox = ppm_CreateBox(x, y, 0.59, 0.86, 0)
  340.                 boxnm = ppm_DocNextBox(Pbox)
  341.                 call ppm_DeleteContents(boxnm)
  342.                 call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/viertelPause', pause)
  343.                 xw = xg/4
  344.                 notex = notex+xw
  345.             end
  346.  
  347.             when nn == '8' then do
  348.  
  349.                 y = zdist2+2.21+zz
  350.                 Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0)
  351.                 boxnm = ppm_DocNextBox(Pbox)
  352.                 call ppm_DeleteContents(boxnm)
  353.                 call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/achtelPause', pause)
  354.                 xw = xg/8
  355.                 notex = notex+xw
  356.             end
  357.  
  358.             when nn == '16' then do
  359.  
  360.                 y = zdist2+2.21+zz
  361.                 Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0)
  362.                 boxnm = ppm_DocNextBox(Pbox)
  363.                 call ppm_DeleteContents(boxnm)
  364.                 call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/sechzehntelPause', pause)
  365.                 xw = xg/16
  366.                 notex = notex+xw
  367.             end
  368.         otherwise
  369.                do
  370.                 call ppm_ClearStatus()
  371.                 exit_msg("Da war ein Fehler")
  372.                end
  373.         end
  374.         if notex >=18.7 then
  375.           do
  376.             notex = 2.5
  377.             zz = zz + zdist
  378.           end
  379.         return
  380.       end
  381.  
  382.     /* Freiräume "space" */
  383.  
  384.       when nw == 'l' then
  385.         do
  386.  
  387.            /* wert = ppm_GetForm("1/1 1/2 1/4 1/8 1/16 ...?", 2, "1 , 2, 4, 8, 16") */
  388.            select
  389.                when nn == '1' then
  390.                do
  391.                 xw = xg
  392.                 notex = notex+xw
  393.                end
  394.                when nn == '2' then
  395.                do
  396.                 xw = xg/2
  397.                 notex = notex+xw
  398.                end
  399.                when nn == '4' then
  400.                do
  401.                 xw = xg/4
  402.                 notex = notex+xw
  403.                end
  404.                when nn == '8' then
  405.                do
  406.                 xw = xg/8
  407.                 notex = notex+xw
  408.                end
  409.                when nn == '16' then
  410.                do
  411.                 xw  = xg/16
  412.                 notex = notex+xw
  413.                end
  414.                when nn == 't' then
  415.                do
  416.                 xw  = 0.2
  417.                 notex = notex+xw
  418.                end
  419.                when nn == 0 then do
  420.                end
  421.                otherwise
  422.                do
  423.                 call ppm_ClearStatus()
  424.                 exit_msg("Da war ein Fehler")
  425.                end
  426.            end
  427.            if notex >=18.7 then
  428.              do
  429.                notex = 2.5
  430.                zz = zz + zdist
  431.              end
  432.            return
  433.         end
  434.       when nw == 'ENDE' then nw = 'ende'
  435.       when nw == 'ende' then
  436.         do
  437.             call ppm_ClearStatus()
  438.             exit_msg("Geschafft!")
  439.         end
  440.       otherwise
  441.                do
  442.                 call ppm_ClearStatus()
  443.                 exit_msg("Da war ein Fehler")
  444.                end
  445.     end
  446.  
  447.         /* y-Raster der Noten - Notenhälse nach oben (y-Position der Box) */
  448.  
  449.     call ppm_SetLineWeight(0.25)
  450.  
  451.     select
  452.  
  453.         when nn=='g#3'  then
  454.         do
  455.             yw = 0.745 + zdist2
  456.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  457.             call ppm_SetSize(20)
  458.             call ppm_TextIntoBox(box#id, 's')
  459.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  460.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  461.             call ppm_DrawLine(notex, zz+zdist2+1.4, (notex+0.4), zz+zdist2+1.4)
  462.         end
  463.  
  464.         when nn=='g3'  then
  465.         do
  466.             yw = 0.745 + zdist2
  467.             if al == 'a' then call auflhoch()
  468.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  469.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  470.             call ppm_DrawLine(notex, zz+zdist2+1.4, (notex+0.4), zz+zdist2+1.4)
  471.         end
  472.  
  473.         when nn=='gb3' then
  474.         do
  475.             yw = 0.745 + zdist2
  476.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  477.             call ppm_SetSize(20)
  478.             call ppm_TextIntoBox(box#id, 'f')
  479.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  480.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  481.             call ppm_DrawLine(notex, zz+zdist2+1.4, (notex+0.4), zz+zdist2+1.4)
  482.         end
  483.  
  484.         when nn=='f#3'  then
  485.         do
  486.             yw = 0.845 + zdist2
  487.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  488.             call ppm_SetSize(20)
  489.             call ppm_TextIntoBox(box#id, 's')
  490.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  491.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  492.         end
  493.  
  494.         when nn=='f3'  then
  495.         do
  496.             yw = 0.845 + zdist2
  497.             if al == 'a' then call auflhoch()
  498.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  499.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  500.         end
  501.  
  502.         when nn=='e#3'  then
  503.         do
  504.             yw = 0.945 + zdist2
  505.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  506.             call ppm_SetSize(20)
  507.             call ppm_TextIntoBox(box#id, 's')
  508.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  509.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  510.         end
  511.  
  512.         when nn=='e3'  then
  513.         do
  514.             yw = 0.945 + zdist2
  515.             if al == 'a' then call auflhoch()
  516.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  517.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  518.         end
  519.  
  520.         when nn=='eb3' then
  521.         do
  522.             yw = 0.945 + zdist2
  523.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  524.             call ppm_SetSize(20)
  525.             call ppm_TextIntoBox(box#id, 'f')
  526.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  527.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  528.         end
  529.  
  530.         when nn=='d#3'  then
  531.         do
  532.             yw = 1.045 + zdist2
  533.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  534.             call ppm_SetSize(20)
  535.             call ppm_TextIntoBox(box#id, 's')
  536.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  537.         end
  538.  
  539.         when nn=='d3' then
  540.         do
  541.             yw = 1.045 + zdist2
  542.             if al == 'a' then call auflhoch()
  543.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  544.         end
  545.  
  546.         when nn=='db3'    then
  547.         do
  548.             yw = 1.045 + zdist2
  549.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  550.             call ppm_SetSize(20)
  551.             call ppm_TextIntoBox(box#id, 'f')
  552.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  553.         end
  554.  
  555.         when nn=='c#3'    then
  556.         do
  557.             yw = 1.145 + zdist2
  558.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  559.             call ppm_SetSize(20)
  560.             call ppm_TextIntoBox(box#id, 's')
  561.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  562.         end
  563.  
  564.         when nn=='c3'     then
  565.         do
  566.             yw = 1.145 + zdist2
  567.             if al == 'a' then call auflhoch()
  568.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  569.         end
  570.  
  571.         when nn=='h2'     then
  572.         do
  573.             yw = 1.245 + zdist2
  574.             if al == 'a' then call auflhoch()
  575.         end
  576.         when nn=='b2'     then
  577.         do
  578.             yw = 1.245 + zdist2
  579.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  580.             call ppm_SetSize(20)
  581.             call ppm_TextIntoBox(box#id, 'f')
  582.         end
  583.  
  584.         when nn=='a#2'    then
  585.         do
  586.             yw = 1.345 + zdist2
  587.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  588.             call ppm_SetSize(20)
  589.             call ppm_TextIntoBox(box#id, 's')
  590.         end
  591.  
  592.         when nn=='a2'     then
  593.         do
  594.             yw = 1.345 + zdist2
  595.             if al == 'a' then call auflhoch()
  596.         end
  597.         when nn=='ab2'    then
  598.         do
  599.             yw = 1.345 + zdist2
  600.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  601.             call ppm_SetSize(20)
  602.             call ppm_TextIntoBox(box#id, 'f')
  603.         end
  604.  
  605.         when nn=='g#2'    then
  606.         do
  607.             yw = 1.445 + zdist2
  608.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  609.             call ppm_SetSize(20)
  610.             call ppm_TextIntoBox(box#id, 's')
  611.         end
  612.  
  613.         when nn=='g2'     then
  614.         do
  615.             yw = 1.445 + zdist2
  616.             if al == 'a' then call auflhoch()
  617.         end
  618.         when nn=='gb2'    then
  619.         do
  620.             yw = 1.445 + zdist2
  621.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  622.             call ppm_SetSize(20)
  623.             call ppm_TextIntoBox(box#id, 'f')
  624.         end
  625.  
  626.         when nn=='f#2'    then
  627.         do
  628.             yw = 1.545 + zdist2
  629.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  630.             call ppm_SetSize(20)
  631.             call ppm_TextIntoBox(box#id, 's')
  632.         end
  633.  
  634.         when nn=='f2' then
  635.         do
  636.             yw = 1.545 + zdist2
  637.             if al == 'a' then call auflhoch()
  638.         end
  639.         when nn=='e#2'  then
  640.         do
  641.             yw = 1.645 + zdist2
  642.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  643.             call ppm_SetSize(20)
  644.             call ppm_TextIntoBox(box#id, 's')
  645.         end
  646.         when nn=='e2'     then
  647.         do
  648.             yw = 1.645 + zdist2
  649.             if al == 'a' then call auflhoch()
  650.         end
  651.         when nn=='eb2'    then
  652.         do
  653.             yw = 1.645 + zdist2
  654.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  655.             call ppm_SetSize(20)
  656.             call ppm_TextIntoBox(box#id, 'f')
  657.         end
  658.  
  659.         when nn=='d#2'    then
  660.         do
  661.             yw = 1.745 + zdist2
  662.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  663.             call ppm_SetSize(20)
  664.             call ppm_TextIntoBox(box#id, 's')
  665.         end
  666.  
  667.         when nn=='d2'     then
  668.         do
  669.             yw = 1.745 + zdist2
  670.             if al == 'a' then call auflhoch()
  671.         end
  672.         when nn=='db2'    then
  673.         do
  674.             yw = 1.745 + zdist2
  675.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  676.             call ppm_SetSize(20)
  677.             call ppm_TextIntoBox(box#id, 'f')
  678.         end
  679.  
  680.         when nn=='c#2'    then
  681.         do
  682.             yw = 1.845 + zdist2
  683.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  684.             call ppm_SetSize(20)
  685.             call ppm_TextIntoBox(box#id, 's')
  686.         end
  687.  
  688.         when nn=='c2'     then
  689.         do
  690.             yw = 1.845 + zdist2
  691.             if al == 'a' then call auflhoch()
  692.         end
  693.         when nn=='h1'     then
  694.         do
  695.             yw = 1.945 + zdist2
  696.             if al == 'a' then call auflhoch()
  697.         end
  698.         when nn=='b1'     then
  699.         do
  700.             yw = 1.945 + zdist2
  701.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  702.             call ppm_SetSize(20)
  703.             call ppm_TextIntoBox(box#id, 'f')
  704.         end
  705.  
  706.         when nn=='a#1'    then
  707.         do
  708.             yw = 2.045 + zdist2
  709.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  710.             call ppm_SetSize(20)
  711.             call ppm_TextIntoBox(box#id, 's')
  712.         end
  713.  
  714.         when nn=='a1'     then
  715.         do
  716.             yw = 2.045 + zdist2
  717.             if al == 'a' then call auflhoch()
  718.         end
  719.         when nn=='ab1'    then
  720.         do
  721.             yw = 2.045 + zdist2
  722.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  723.             call ppm_SetSize(20)
  724.             call ppm_TextIntoBox(box#id, 'f')
  725.         end
  726.  
  727.         when nn=='g#1'    then
  728.         do
  729.             yw = 2.145 + zdist2
  730.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  731.             call ppm_SetSize(20)
  732.             call ppm_TextIntoBox(box#id, 's')
  733.         end
  734.  
  735.         when nn=='g1'     then
  736.         do
  737.             yw = 2.145 + zdist2
  738.             if al == 'a' then call auflhoch()
  739.         end
  740.         when nn=='gb1'    then
  741.         do
  742.             yw = 2.145 + zdist2
  743.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  744.             call ppm_SetSize(20)
  745.             call ppm_TextIntoBox(box#id, 'f')
  746.         end
  747.  
  748.         when nn=='f#1'    then
  749.         do
  750.             yw = 2.245 + zdist2
  751.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  752.             call ppm_SetSize(20)
  753.             call ppm_TextIntoBox(box#id, 's')
  754.         end
  755.  
  756.         when nn=='f1'     then
  757.         do
  758.             yw = 2.245 + zdist2
  759.             if al == 'a' then call auflhoch()
  760.         end
  761.  
  762.         when nn=='e#1'  then
  763.         do
  764.             yw = 2.345 + zdist2
  765.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  766.             call ppm_SetSize(20)
  767.             call ppm_TextIntoBox(box#id, 's')
  768.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  769.         end
  770.         when nn=='e1' then
  771.         do
  772.             yw = 2.345 + zdist2
  773.             if al == 'a' then call auflhoch()
  774.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  775.         end
  776.  
  777.         when nn=='eb1'  then
  778.         do
  779.             yw = 2.345 + zdist2
  780.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  781.             call ppm_SetSize(20)
  782.             call ppm_TextIntoBox(box#id, 'f')
  783.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  784.         end
  785.  
  786.         when nn=='d#1'  then
  787.         do
  788.             yw = 2.445 + zdist2
  789.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  790.             call ppm_SetSize(20)
  791.             call ppm_TextIntoBox(box#id, 's')
  792.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  793.         end
  794.  
  795.         when nn=='d1'  then
  796.         do
  797.             yw = 2.445 + zdist2
  798.             if al == 'a' then call auflhoch()
  799.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  800.         end
  801.  
  802.         when nn=='db1' then
  803.         do
  804.             yw = 2.445 + zdist2
  805.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0)
  806.             call ppm_SetSize(20)
  807.             call ppm_TextIntoBox(box#id, 'f')
  808.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  809.         end
  810.  
  811.         when nn=='c#1'  then
  812.         do
  813.             yw = 2.545 + zdist2
  814.             box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0)
  815.             call ppm_SetSize(20)
  816.             call ppm_TextIntoBox(box#id, 's')
  817.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  818.             call ppm_DrawLine(notex, zz+zdist2+3.2, (notex+0.4), zz+zdist2+3.2)
  819.         end
  820.  
  821.         when nn=='c1'  then
  822.         do
  823.             yw = 2.545 + zdist2
  824.             if al == 'a' then call auflhoch()
  825.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  826.             call ppm_DrawLine(notex, zz+zdist2+3.2, (notex+0.4), zz+zdist2+3.2)
  827.         end
  828.  
  829.     /* y-Raster der Noten - Notenhälse nach unten */
  830.  
  831.         when nn=='G#3'  then
  832.         do
  833.             yw = 1.22 + zdist2
  834.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  835.             call ppm_SetSize(20)
  836.             call ppm_TextIntoBox(box#id, 's')
  837.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  838.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  839.             call ppm_DrawLine(notex, zz+zdist2+1.4, (notex+0.4), zz+zdist2+1.4)
  840.         end
  841.  
  842.         when nn=='G3'  then
  843.         do
  844.             yw = 1.22 + zdist2
  845.             if al == 'a' then call aufltief()
  846.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  847.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  848.             call ppm_DrawLine(notex, zz+zdist2+1.4, (notex+0.4), zz+zdist2+1.4)
  849.         end
  850.  
  851.         when nn=='Gb3' then
  852.         do
  853.             yw = 1.22 + zdist2
  854.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  855.             call ppm_SetSize(20)
  856.             call ppm_TextIntoBox(box#id, 'f')
  857.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  858.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  859.             call ppm_DrawLine(notex, zz+zdist2+1.4, (notex+0.4), zz+zdist2+1.4)
  860.         end
  861.  
  862.         when nn=='F#3'  then
  863.         do
  864.             yw = 1.32 + zdist2
  865.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  866.             call ppm_SetSize(20)
  867.             call ppm_TextIntoBox(box#id, 's')
  868.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  869.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  870.         end
  871.  
  872.         when nn=='F3'  then
  873.         do
  874.             yw = 1.32 + zdist2
  875.             if al == 'a' then call aufltief()
  876.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  877.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  878.         end
  879.  
  880.         when nn=='E#3'  then
  881.         do
  882.             yw = 1.42 + zdist2
  883.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  884.             call ppm_SetSize(20)
  885.             call ppm_TextIntoBox(box#id, 's')
  886.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  887.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  888.         end
  889.  
  890.         when nn=='E3'  then
  891.         do
  892.             yw = 1.42 + zdist2
  893.             if al == 'a' then call aufltief()
  894.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  895.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  896.         end
  897.  
  898.         when nn=='Eb3' then
  899.         do
  900.             yw = 1.42 + zdist2
  901.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  902.             call ppm_SetSize(20)
  903.             call ppm_TextIntoBox(box#id, 'f')
  904.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  905.             call ppm_DrawLine(notex, zz+zdist2+1.6, (notex+0.4), zz+zdist2+1.6)
  906.         end
  907.  
  908.         when nn=='D#3'  then
  909.         do
  910.             yw = 1.52 + zdist2
  911.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  912.             call ppm_SetSize(20)
  913.             call ppm_TextIntoBox(box#id, 's')
  914.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  915.         end
  916.  
  917.         when nn=='D3' then
  918.         do
  919.             yw = 1.52 + zdist2
  920.             if al == 'a' then call aufltief()
  921.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  922.         end
  923.  
  924.         when nn=='Db3' then
  925.         do
  926.             yw = 1.52 + zdist2
  927.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  928.             call ppm_SetSize(20)
  929.             call ppm_TextIntoBox(box#id, 'f')
  930.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  931.         end
  932.  
  933.         when nn=='C#3'    then
  934.         do
  935.             yw = 1.62 + zdist2
  936.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  937.             call ppm_SetSize(20)
  938.             call ppm_TextIntoBox(box#id, 's')
  939.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  940.         end
  941.  
  942.         when nn=='C3'     then
  943.         do
  944.             yw = 1.62 + zdist2
  945.             if al == 'a' then call aufltief()
  946.             call ppm_DrawLine(notex, zz+zdist2+1.8, (notex+0.4), zz+zdist2+1.8)
  947.         end
  948.  
  949.         when nn=='H2'     then
  950.         do
  951.             yw = 1.72 + zdist2
  952.             if al == 'a' then call aufltief()
  953.         end
  954.         when nn=='B2'     then
  955.         do
  956.             yw = 1.72 + zdist2
  957.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  958.             call ppm_SetSize(20)
  959.             call ppm_TextIntoBox(box#id, 'f')
  960.         end
  961.  
  962.         when nn=='A#2'    then
  963.         do
  964.             yw = 1.82 + zdist2
  965.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  966.             call ppm_SetSize(20)
  967.             call ppm_TextIntoBox(box#id, 's')
  968.         end
  969.  
  970.         when nn=='A2'     then
  971.         do
  972.             yw = 1.82 + zdist2
  973.             if al == 'a' then call aufltief()
  974.         end
  975.         when nn=='Ab2'    then
  976.         do
  977.             yw = 1.82 + zdist2
  978.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  979.             call ppm_SetSize(20)
  980.             call ppm_TextIntoBox(box#id, 'f')
  981.         end
  982.  
  983.         when nn=='G#2'    then
  984.         do
  985.             yw = 1.92 + zdist2
  986.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  987.             call ppm_SetSize(20)
  988.             call ppm_TextIntoBox(box#id, 's')
  989.         end
  990.  
  991.         when nn=='G2'     then
  992.         do
  993.             yw = 1.92 + zdist2
  994.             if al == 'a' then call aufltief()
  995.         end
  996.         when nn=='Gb2'    then
  997.         do
  998.             yw = 1.92 + zdist2
  999.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1000.             call ppm_SetSize(20)
  1001.             call ppm_TextIntoBox(box#id, 'f')
  1002.         end
  1003.  
  1004.         when nn=='F#2'    then
  1005.         do
  1006.             yw = 2.02 + zdist2
  1007.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1008.             call ppm_SetSize(20)
  1009.             call ppm_TextIntoBox(box#id, 's')
  1010.         end
  1011.  
  1012.         when nn=='F2'     then
  1013.         do
  1014.             yw = 2.02 + zdist2
  1015.             if al == 'a' then call aufltief()
  1016.         end
  1017.         when nn=='E#2'    then
  1018.         do
  1019.             yw = 2.12 + zdist2
  1020.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1021.             call ppm_SetSize(20)
  1022.             call ppm_TextIntoBox(box#id, 's')
  1023.         end
  1024.  
  1025.         when nn=='E2'     then
  1026.         do
  1027.             yw = 2.12 + zdist2
  1028.             if al == 'a' then call aufltief()
  1029.         end
  1030.         when nn=='Eb2'    then
  1031.         do
  1032.             yw = 2.12 + zdist2
  1033.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1034.             call ppm_SetSize(20)
  1035.             call ppm_TextIntoBox(box#id, 'f')
  1036.         end
  1037.  
  1038.         when nn=='D#2'    then
  1039.         do
  1040.             yw = 2.22 + zdist2
  1041.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1042.             call ppm_SetSize(20)
  1043.             call ppm_TextIntoBox(box#id, 's')
  1044.         end
  1045.  
  1046.         when nn=='D2'     then
  1047.         do
  1048.             yw = 2.22 + zdist2
  1049.             if al == 'a' then call aufltief()
  1050.         end
  1051.         when nn=='Db2'    then
  1052.         do
  1053.             yw = 2.22 + zdist2
  1054.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1055.             call ppm_SetSize(20)
  1056.             call ppm_TextIntoBox(box#id, 'f')
  1057.         end
  1058.  
  1059.         when nn=='C#2'    then
  1060.         do
  1061.             yw = 2.32 + zdist2
  1062.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1063.             call ppm_SetSize(20)
  1064.             call ppm_TextIntoBox(box#id, 's')
  1065.         end
  1066.  
  1067.         when nn=='C2'     then
  1068.         do
  1069.             yw = 2.32 + zdist2
  1070.             if al == 'a' then call aufltief()
  1071.         end
  1072.         when nn=='H1'     then yw = 2.42 + zdist2
  1073.         when nn=='B1'     then
  1074.         do
  1075.             yw = 2.42 + zdist2
  1076.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1077.             call ppm_SetSize(20)
  1078.             call ppm_TextIntoBox(box#id, 'f')
  1079.         end
  1080.  
  1081.         when nn=='A#1'    then
  1082.         do
  1083.             yw = 2.52 + zdist2
  1084.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1085.             call ppm_SetSize(20)
  1086.             call ppm_TextIntoBox(box#id, 's')
  1087.         end
  1088.  
  1089.         when nn=='A1'     then
  1090.         do
  1091.             yw = 2.52 + zdist2
  1092.             if al == 'a' then call aufltief()
  1093.         end
  1094.         when nn=='Ab1'    then
  1095.         do
  1096.             yw = 2.52 + zdist2
  1097.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1098.             call ppm_SetSize(20)
  1099.             call ppm_TextIntoBox(box#id, 'f')
  1100.         end
  1101.  
  1102.         when nn=='G#1'    then
  1103.         do
  1104.             yw = 2.62 + zdist2
  1105.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1106.             call ppm_SetSize(20)
  1107.             call ppm_TextIntoBox(box#id, 's')
  1108.         end
  1109.  
  1110.         when nn=='G1'     then
  1111.         do
  1112.             yw = 2.62 + zdist2
  1113.             if al == 'a' then call aufltief()
  1114.         end
  1115.         when nn=='Gb1'    then
  1116.         do
  1117.             yw = 2.62 + zdist2
  1118.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1119.             call ppm_SetSize(20)
  1120.             call ppm_TextIntoBox(box#id, 'f')
  1121.         end
  1122.  
  1123.         when nn=='F#1'    then
  1124.         do
  1125.             yw = 2.72 + zdist2
  1126.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1127.             call ppm_SetSize(20)
  1128.             call ppm_TextIntoBox(box#id, 's')
  1129.         end
  1130.  
  1131.         when nn=='F1'     then
  1132.         do
  1133.             yw = 2.72 + zdist2
  1134.             if al == 'a' then call aufltief()
  1135.         end
  1136.  
  1137.         when nn=='E#1'    then
  1138.         do
  1139.             yw = 2.82 + zdist2
  1140.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1141.             call ppm_SetSize(20)
  1142.             call ppm_TextIntoBox(box#id, 's')
  1143.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1144.         end
  1145.  
  1146.         when nn=='E1' then
  1147.         do
  1148.             yw = 2.82 + zdist2
  1149.             if al == 'a' then call aufltief()
  1150.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1151.         end
  1152.  
  1153.         when nn=='Eb1'  then
  1154.         do
  1155.             yw = 2.82 + zdist2
  1156.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1157.             call ppm_SetSize(20)
  1158.             call ppm_TextIntoBox(box#id, 'f')
  1159.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1160.         end
  1161.  
  1162.         when nn=='D#1'  then
  1163.         do
  1164.             yw = 2.92 + zdist2
  1165.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1166.             call ppm_SetSize(20)
  1167.             call ppm_TextIntoBox(box#id, 's')
  1168.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1169.         end
  1170.  
  1171.         when nn=='D1'  then
  1172.         do
  1173.             yw = 2.92 + zdist2
  1174.             if al == 'a' then call aufltief()
  1175.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1176.         end
  1177.  
  1178.         when nn=='Db1' then
  1179.         do
  1180.             yw = 2.92 + zdist2
  1181.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0)
  1182.             call ppm_SetSize(20)
  1183.             call ppm_TextIntoBox(box#id, 'f')
  1184.             call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1185.         end
  1186.  
  1187.         when nn=='C#1'  then
  1188.         do
  1189.           yw = 3.02 + zdist2
  1190.             box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0)
  1191.             call ppm_SetSize(20)
  1192.             call ppm_TextIntoBox(box#id, 's')
  1193.           call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1194.           call ppm_DrawLine(notex, zz+zdist2+3.2, (notex+0.4), zz+zdist2+3.2)
  1195.         end
  1196.  
  1197.         when nn=='C1'  then
  1198.         do
  1199.           yw = 3.02 + zdist2
  1200.             if al == 'a' then call aufltief()
  1201.           call ppm_DrawLine(notex, zz+zdist2+3, (notex+0.4), zz+zdist2+3)
  1202.           call ppm_DrawLine(notex, zz+zdist2+3.2, (notex+0.4), zz+zdist2+3.2)
  1203.         end
  1204.         otherwise
  1205.                do
  1206.                 call ppm_ClearStatus()
  1207.                 exit_msg("Da war ein Fehler")
  1208.                end
  1209.     end
  1210.  
  1211.         /* größe einer Notenbox */
  1212.  
  1213.         notewidht = 0.64
  1214.         noteheight = 0.97
  1215.  
  1216.  
  1217.         boxid = ppm_CreateBox(notex, yw+zz, notewidht, noteheight, 0)
  1218.         call ppm_SetSize(notepkt)
  1219.         call ppm_TextIntoBox(boxid, nw)
  1220.         bakx = notex
  1221.         notex = (notex + xw)
  1222.         if notex >=18.7 then
  1223.             do
  1224.               notex = 2.5
  1225.               zz = zz + zdist
  1226.             end
  1227.      return
  1228. end
  1229. exit
  1230.  
  1231. auflhoch:
  1232. do
  1233.   Pbox = ppm_CreateBox(notex-0.34, yw+zz+0.07, 0.6, 1.2, 0)
  1234.   boxnm = ppm_DocNextBox(Pbox)
  1235.   call ppm_DeleteContents(boxnm)
  1236.   call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/Auflsng', Zeichen)
  1237.   return
  1238. end
  1239.  
  1240. aufltief:
  1241. do
  1242.   Pbox = ppm_CreateBox(notex-0.34, yw+zz-0.4, 0.6, 1.2, 0)
  1243.   boxnm = ppm_DocNextBox(Pbox)
  1244.   call ppm_DeleteContents(boxnm)
  1245.   call ppm_ImportGraphic(boxnm, 'Genies:noten_pausen/Auflsng', Zeichen)
  1246.   return
  1247. end
  1248.  
  1249. break_d:
  1250. break_e:
  1251. break_c:
  1252. halt:
  1253.     call exit_msg("User aborted Genie!")
  1254.  
  1255. exit_msg: procedure
  1256. do
  1257.     parse arg message
  1258.  
  1259.     if message ~= '' then
  1260.     call ppm_Inform(1,message,)
  1261.  
  1262.     call ppm_ClearStatus()
  1263.     call ppm_AutoUpdate(1)
  1264.     exit
  1265. end
  1266.